<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"><!--集成shiro和thmeleaf-->
<head>
    <meta charset="UTF-8">
    <title>初始页</title>

</head>
<body>
  初始页
  <div th:if="${#session.getAttribute('student')!=null}">
      <span th:text="欢迎回来"></span>
      <div><a th:href="@{/logout}">退出</a> </div>
  </div>
  <div shiro:hasPermission="manage">
          <a href="/manage">manage</a> <br/>
        </div>
    <div shiro:hasRole="admin">
          <a href="/admin">admin</a>
        </div>
</body>
</html>